package com.bigben.service.impl;

import com.bigben.entites.CommDictionary;
import com.bigben.mapper.CommDictionaryMapper;
import com.bigben.service.DictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @Author: zhaoben
* @Date: 2016/12/18 15:46
* @Desc: Dictionary相关操作实现
*/
@Service
public class DictionaryServiceImpl implements DictionaryService {

    @Autowired
    private CommDictionaryMapper dictionaryMapper;

    @Override
    public List<CommDictionary> getDictByParentId(String parentId) {
        return dictionaryMapper.getDictByParentId(parentId);
    }

    @Override
    public List<CommDictionary> getAll() {
        return dictionaryMapper.getAll();
    }

    @Override
    public void update(List<CommDictionary> dicts) {
        dictionaryMapper.update(dicts);
    }
}
